import { colorHandler } from '@/views/chart/components/utils'
import { defineStore } from 'pinia'
import type { chartDataType } from "@/views/chart/components/chartType";
export const chartStore = defineStore('chart', {

  state: () => ({
    industryData: [
      {
        name: "农、林、牧、渔",
        value: 20,
      },
      {
        name: "服装纺织业",
        value: 10,
      },
      {
        name: "建筑业",
        value: 30,
      },
      {
        name: "机械电子",
        value: 40,
      },
      {
        name: "餐饮服务业",
        value: 40,
      },
      {
        name: "销售业",
        value: 40,
      },
      {
        name: "交通运输业",
        value: 40,
      },
      {
        name: "其他行业",
        value: 40,
      },
    ] as chartDataType[],
    salaryData: [
      {
        name: "2千(含)以下",
        value: 20,
      },
      {
        name: "2000-5000(含)",
        value: 10,
      },
      {
        name: "500-10000(含)",
        value: 30,
      },
      {
        name: "1万以上",
        value: 40,
      },
    ] as chartDataType[],
    employData: [
      {
        name: "在外就业",
        value: 60,
      },
      {
        name: "本地就业",
        value: 30,
      },
      {
        name: "未就业",
        value: 10,
      },
      {
        name: "其他",
        value: 40,
      },
    ] as chartDataType[],
    degData: [
      {
        name: "初中及以下",
        value: 159742,
        itemStyle: {
          //   opacity: 0.5,
          color: "#2A71FF",
        },
      },

      {
        name: "高中及中专",
        value: 56526,
        itemStyle: {
          //   opacity: 0.5,
          color: "#00EDFE",
        },
      },
      {
        name: "大专及以上",
        value: 27484,
        itemStyle: {
          //   opacity: 0.5,
          color: "#FEDB4B",
        },
      },
    ] as chartDataType[],
    ageData: [
      {
        name: "16--29岁",
        value: "17",
      },
      {
        name: "30-39岁",
        value: "30",
      },
      {
        name: "40-49岁",
        value: "18",
      },
      {
        name: "50-59岁",
        value: "35",
      },
    ] as chartDataType[],
    sexData: [
      {
        name: "男",
        value: "51",
      },
      {
        name: "女",
        value: "49",
      },
    ] as chartDataType[],
  }),


})